<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Image Fit</title>
    <link rel="stylesheet" href="oban.css"/>
    <style>
      .image-fit {
        width: 300px;
        height: 200px;
        padding: 5px;
        border: 1px solid #ccc;
      }
    </style>
  </head>
  <body>
    <p>Larger image in both directions</p>
    <div class="image-fit" style="background-image: url(http://dummyimage.com/400x400/000/fff)"></div>
    <p>Exact Size</p>
    <div class="image-fit" style="background-image: url(http://dummyimage.com/300x200/000/fff)"></div>
    <p>Wide image</p>
    <div class="image-fit" style="background-image: url(http://dummyimage.com/400x150/000/fff)"></div>
    <p>Tall image</p>
    <div class="image-fit" style="background-image: url(http://dummyimage.com/200x300/000/fff)"></div>
    <p>Small image</p>
    <div class="image-fit" style="background-image: url(http://dummyimage.com/200x150/000/fff)"></div>
  </body>
</html>
